import request from '@/utils/request'; //引入axios对象

const BAST_API = "http://www.defihome.xyz/";

export default {
    loginIn(name, password, code) {
        return request({
            method: 'get',
            url: BAST_API + 'user/login',
            params: {
                name,
                password,
                code
            }
        });
    },
    getUserInf(token) {
        return request({
            method: 'get',
            url: BAST_API + '/user/info/' + token
        });
    }
}